/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sistemperpustakaan.entity;

/**
 *
 * @author EKo
 */
public class TypeAnggota {
    int id;
    String type;
    Object object;

    public TypeAnggota() {
    }

    public TypeAnggota(int id, String type) {
        this.id = id;
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public Object getObject(int index) {
        switch(index){
            case 0: return id;
            case 1: return type;
            default:return null;
        }
    }
}
